package com.dys.testfinal;

/**
 * @className: com.dys.testfinal.BasePerson
 * @description: com.dys.testfinal
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/07/21 下午8:47
 */
public final class BasePerson {

    public final void eat() {
        System.out.println("父类吃饭的方法");
    }
}

// final修饰类，该类不能被继承
class Student /*extends BasePerson*/ {
    // @Override
    // public void eat(){
    //     super.eat();
    // }
}
